
//打印日志
var config = require('Config');

var log = function(message, ...optionalParams){
    if(config.developer){
        if(optionalParams.length>0){
            console.log(message, optionalParams);
        }else{
            console.log(message);
        }
        
    }   
}

module.exports = {
    log: log
}
